import {
    post,
    get
} from '@/utils/axios.js'
// var api = '/api/v1'
var wsApi = '/ws/v1'

// 保存、提交开工申请
export function saveLoitBuildStartApply(data) {
    return post(wsApi + '/loitBuildStartApply/save', data)
}

// 获取建房申请记录
export function getBuildApply(data) {
    return get(wsApi + '/loitBuildStartApply/select/build/apply', data)
}

// 竣工建房申请记录
export function getFinishBuildApplyNotice(data) {
    return get(wsApi + '/buildCompletedApply/getBuildCompletedList', data)
  }

// 获取工匠信息
export function queryCraftsman(data) {
    return get(wsApi + '/craftsmanInfo/getList', data)
}

// 保存、提交竣工申请
export function saveBuildCompletedApply(data) {
    return post(wsApi + '/buildCompletedApply/save', data)
}

// 开工申请审批列表(政务端)
export function getLoitBuildStartApplyQueryPage(data) {
    return get(wsApi + '/loitBuildStartApply/queryPage', data)
}
// 开工申请审批-办理查询
export function getLoitBuildStartApplySelectBuild(id) {
    return get(wsApi + `/loitBuildStartApply/select/build/${id}`)
}
// 开工申请审批办理
export function savewsLoitBuildHandleApply(data) {
    return post(wsApi + '/wsloitBuildStartApplyHandle/apply/save', data)
}